<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>set 数组去重</title>
</head>
<body>
    
    <script>
    
        {
            // set 去重

            let ary = [1,2,1,2,3,2,1,2,3,4,5,2,3,4,5];

            let s = new Set(ary);

            let a = Array.from(s);

            console.log(a);

        }

    </script>

</body>
</html>